Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve support @constraint annotation mapping to OpenAPI spec #1541

Merged

Conversation

SachinAkash01
Copy link
Member

@SachinAkash01 SachinAkash01 commented Sep 16, 2023

  • Add support for mapping Ballerina constraints (Int, Float, Number) to the OpenAPI specification.
  • Add unit tests to ensure the accuracy & reliability of @constraint mapping to OpenAPI spec.
  • This ensures that Int, Float & Number constraints in Ballerina are accurately reflected in OpenAPI spec.

Resolves: #4796
See also: #4788

* Add support for mapping Ballerina constraints (Int, Float, Number) to the OpenAPI specification.
* Add unit tests to ensure the accuracy & reliability of @constraint mapping to OpenAPI spec.
* This ensures that Int, Float & Number constraints in Ballerina are accurately reflected in OpenAPI spec.

Resolves: #4796
See also: #4788
* Add support for mapping Ballerina constraints (Int, Float, Number) to the OpenAPI specification.
* Add unit tests to ensure the accuracy & reliability of @constraint mapping to OpenAPI spec.
* This ensures that Int, Float & Number constraints in Ballerina are accurately reflected in OpenAPI spec.

Resolves: #4796
See also: #4788
@CLAassistant
Copy link

CLAassistant commented Sep 16, 2023

CLA assistant check
All committers have signed the CLA.

@ayeshLK ayeshLK changed the base branch from master to constraint_support September 17, 2023 17:43
…/openapi-tools into constraint_support

# Conflicts:
#	openapi-bal-service/src/main/java/io/ballerina/openapi/converter/service/OpenAPIComponentMapper.java
#	openapi-cli/src/test/resources/ballerina-to-openapi/constraint/decimalMax.bal
#	openapi-cli/src/test/resources/ballerina-to-openapi/constraint/decimalMin.bal
#	openapi-cli/src/test/resources/ballerina-to-openapi/constraint/floatMax.bal
#	openapi-cli/src/test/resources/ballerina-to-openapi/constraint/floatMin.bal
#	openapi-cli/src/test/resources/ballerina-to-openapi/constraint/integerMax.bal
#	openapi-cli/src/test/resources/ballerina-to-openapi/constraint/integerMin.bal
#	openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/decimalMax.yaml
#	openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/decimalMin.yaml
#	openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/floatMax.yaml
#	openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/floatMin.yaml
#	openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/integerMax.yaml
#	openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/integerMin.yaml
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

❗ No coverage uploaded for pull request base (constraint_support@c7cf4fb). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@                  Coverage Diff                  @@
##             constraint_support    #1541   +/-   ##
=====================================================
  Coverage                      ?   79.14%           
  Complexity                    ?     1788           
=====================================================
  Files                         ?      125           
  Lines                         ?    10136           
  Branches                      ?     1681           
=====================================================
  Hits                          ?     8022           
  Misses                        ?     1522           
  Partials                      ?      592           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ayeshLK ayeshLK merged commit 53ca54f into ballerina-platform:constraint_support Sep 20, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map Ballerina Number Constraints to OpenAPI Specification
7 participants